﻿<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" import="java.sql.*" %>
<jsp:useBean id="connDbBean" scope="page" class="com.util.db"/>


<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<script type="text/javascript" src="js/popup.js"></script>
<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<TITLE>修改选择家教</TITLE>
	    
<link rel="stylesheet" href="images/hsgcommon/common.css" type="text/css">
	<link rel="stylesheet" href="images/hsgcommon/div.css" type="text/css">   
       
	</head>
<%
  String id="";
 
   %>
<script language="javascript">

function gows()
{
	document.location.href="xuanzejiajiao_add.jsp?id=<%=id%>";
}
function hsgxia2shxurxu(nstr,nwbk)
{
	if (eval("form1."+nwbk).value.indexOf(nstr)>=0)
	{
		eval("form1."+nwbk).value=eval("form1."+nwbk).value.replace(nstr+"；", "");
	}
	else
	{
		eval("form1."+nwbk).value=eval("form1."+nwbk).value+nstr+"；";
	}
}
</script>
	<body>
			<form action="updateXuanzejiajiao.do" name="form1" method="post">
				      <table width="100%" border="1" align="center" cellpadding="3" cellspacing="1"  style="border-collapse:collapse" bgcolor="#F2FDFF">
						<tr bgcolor="#E7E7E7">
							<td height="30" colspan="2" background="images/table_header.gif">修改选择家教<input type="hidden" name="id" value="${xuanzejiajiao.id}" /></td>
						</tr>
						<tr ><td width="200">订单号：</td><td><input name='dingdanhao' type='text' id='dingdanhao' value='<%=connDbBean.getID()%>' onblur='' class="form-control"  readonly="readonly"/></td></tr>
		<tr ><td width="200">教师姓名：</td><td><input name='jiaoshixingming' type='text' id='jiaoshixingming' value='' onblur='' class="form-control"  readonly='readonly' /></td></tr>
		<tr ><td width="200">主教课程：</td><td><input name='zhujiaokecheng' type='text' id='zhujiaokecheng' value='' onblur='' class="form-control"  readonly='readonly' /></td></tr>
		<tr ><td width="200">教龄：</td><td><input name='jiaoling' type='text' id='jiaoling' value='' onblur='' class="form-control"  readonly='readonly' /></td></tr>
		<tr ><td width="200">学历：</td><td><input name='xueli' type='text' id='xueli' value='' onblur='' class="form-control"  readonly='readonly' /></td></tr>
		<tr ><td width="200">联系电话：</td><td><input name='lianxidianhua' type='text' id='lianxidianhua' value='' onblur='' class="form-control"  readonly='readonly' /></td></tr>
		<tr ><td width="200">费用：</td><td><input name='feiyong' type='text' id='feiyong' value='' onblur='' class="form-control"  readonly='readonly' /></td></tr>
		<tr ><td width="200">购买课时数量：</td><td><input name='goumaikeshishuliang' type='text' id='goumaikeshishuliang' value='' onblur='checkform()' class="form-control" />&nbsp;*<label id='clabelgoumaikeshishuliang' style='margin-top:16px;' /></td></tr>
		<tr ><td width="200">金额：</td><td><input name='jine' type='text' id='jine' value='' onblur='' class="form-control" readonly='readonly' /> 此项不必填写，系统自动计算</td></tr>
		<tr 0><td width="200">用户名：</td><td><input name='yonghuming' type='text' id='yonghuming' onblur='' class="form-control" value='<%=(String)request.getSession().getAttribute("username")%>' readonly="readonly" /></td></tr><script language="javascript">document.form1.yonghuming.value='<%=connDbBean.readzd("yonghu","yonghuming","yonghuming",(String)request.getSession().getAttribute("username"))%>';document.form1.yonghuming.setAttribute("readOnly",'true');</script>
		<tr 1><td width="200">姓名：</td><td><input name='xingming' type='text' id='xingming' value='' onblur='' class="form-control" /></td></tr><script language="javascript">document.form1.xingming.value='<%=connDbBean.readzd("yonghu","xingming","yonghuming",(String)request.getSession().getAttribute("username"))%>';document.form1.xingming.setAttribute("readOnly",'true');</script>
		<tr 2><td width="200">手机号：</td><td><input name='shoujihao' type='text' id='shoujihao' value='' onblur='' class="form-control" /></td></tr><script language="javascript">document.form1.shoujihao.value='<%=connDbBean.readzd("yonghu","shoujihao","yonghuming",(String)request.getSession().getAttribute("username"))%>';document.form1.shoujihao.setAttribute("readOnly",'true');</script>
		<tr 3><td width="200">备注：</td><td><textarea name='beizhu' cols='50' rows='5' id='beizhu' onblur='' class="form-control" style="width:600px; height:80px;" ></textarea></td></tr>
		
		
						<tr align='center'   height="22">
						    <td width="25%" height="45"  align="right">&nbsp;						    </td>
						    <td width="75%"  align="left">
						       <input type="submit" name="querenzhuce" id="querenzhuce" value="提交" onClick="return checkform();" class="btn btn-info btn-small" />
						     &nbsp;
						    </td>
						</tr>
						<script language="javascript">document.form1.dingdanhao.value='${xuanzejiajiao.dingdanhao}';</script>
	<script language="javascript">document.form1.jiaoshixingming.value='${xuanzejiajiao.jiaoshixingming}';</script>
	<script language="javascript">document.form1.zhujiaokecheng.value='${xuanzejiajiao.zhujiaokecheng}';</script>
	<script language="javascript">document.form1.jiaoling.value='${xuanzejiajiao.jiaoling}';</script>
	<script language="javascript">document.form1.xueli.value='${xuanzejiajiao.xueli}';</script>
	<script language="javascript">document.form1.lianxidianhua.value='${xuanzejiajiao.lianxidianhua}';</script>
	<script language="javascript">document.form1.feiyong.value='${xuanzejiajiao.feiyong}';</script>
	<script language="javascript">document.form1.goumaikeshishuliang.value='${xuanzejiajiao.goumaikeshishuliang}';</script>
	<script language="javascript">document.form1.jine.value='${xuanzejiajiao.jine}';</script>
	<script language="javascript">document.form1.yonghuming.value='${xuanzejiajiao.yonghuming}';</script>
	<script language="javascript">document.form1.xingming.value='${xuanzejiajiao.xingming}';</script>
	<script language="javascript">document.form1.shoujihao.value='${xuanzejiajiao.shoujihao}';</script>
	<script language="javascript">document.form1.beizhu.value='${xuanzejiajiao.beizhu}';</script>
	
					 </table>
			</form>
   </body>
</html>






<script language=javascript >  
 
 function checkform(){  
 
	var goumaikeshishuliangobj = document.getElementById("goumaikeshishuliang"); if(goumaikeshishuliangobj.value==""){document.getElementById("clabelgoumaikeshishuliang").innerHTML="&nbsp;&nbsp;<font color=red>请输入购买课时数量</font>";return false;}else{document.getElementById("clabelgoumaikeshishuliang").innerHTML="  "; } 
	
    var jinej=1;if(document.getElementById("feiyong").value!=""){jinej=jinej*parseFloat(document.getElementById("feiyong").value);}if(document.getElementById("goumaikeshishuliang").value!=""){jinej=jinej*parseFloat(document.getElementById("goumaikeshishuliang").value);}document.getElementById("jine").value=jinej;
	


return true;   
}   
popheight=450;
</script>  
